package com.xyebank.ledger.service.xjfq.dataProvider.sche;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xyebank.ledger.anon.MigTaskComponent;
import com.xyebank.ledger.enums.LedgerJobType;
import com.xyebank.ledger.service.common.MigServiceAdapter;
import com.xyebank.ledger.service.xjfq.adaper.XJFQServiceAdapter;
import com.xyebank.ledger.vo.deal.XJFQCashCreditVo;

@Component
@MigTaskComponent(type = "xjfq_credit_")
public class XJFQCreditMigService extends MigServiceAdapter<XJFQCashCreditVo> {
	@Autowired
	private XJFQServiceAdapter xjfqServiceAdapter;

	@Override
	public Integer deal(Integer fromIdx, List list, LedgerJobType jobType) {
		return xjfqServiceAdapter.dealPayment(fromIdx, list, LedgerJobType.MIGRATE);
	}

}
